<?php
if (!defined('WEB_ROOT')) {
	exit;
}
$catId = (isset($_GET['catId']) && $_GET['catId'] > 0) ? $_GET['catId'] : 0;

$categoryList = buildCategoryOptions($catId);	

?> 


<script type="text/javascript" src="../fckeditor/fckeditor.js"></script> 
<script src="./../resource/ckeditor/ckeditor.js"></script>
<script type="text/javascript">
/*	 
window.onload = function()
	  {
		  var oFCKeditor = new FCKeditor( 'mtxDescription' ) ;
		  oFCKeditor.BasePath = "../fckeditor/" ;
		 oFCKeditor.Height = 800;
		 oFCKeditor.Width = 700;		
	     oFCKeditor.ReplaceTextarea() ;
	    }
        */
</script>
<!DOCTYPE html>
<html lang="en">
<body>	
<form action="processProduct.php?action=addProduct" method="post" enctype="multipart/form-data" name="frmAddProduct" id="frmAddProduct">
  <div class="title" style="text-align: center">
       <strong><span style="font-size: 14pt">MANAGEMENT PRODUCT</span></strong></div>  
        <div class="title">      
            <div class="seprate"> <img src="../images/bullet0.jpg" alt="Cate"/>
            Category&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp</div>
            <div class="rightseprate" style="text-align: right">
          <table width="100%" border="0" align="center" cellpadding="5" cellspacing="1" >
		  <tr> 		   
		   <td width="3" ></td>
		   <td class="content" >
		    <select name="cboCategory" id="cboCategory" >
		     <option value="" selected>------ Choose Category-------</option>
			<?php
				echo $categoryList;
			?>	 
		    </select>
		    </td>
		  </tr>
 		 </table>
            </div>      
        </div>
        <div class="title">      
            <div class="seprate"> <img src="../images/bullet0.jpg" alt="Cate"/>
                Product Name&nbsp</div>
            <div>
            <input name="txtName" id="txtName" type="text" size="40px"/>
            <input name="txtName_vi" id="txtName_vi" type="text"  size="40px"/>
            </div>      
        </div>        
        
        <div class="title">      
        </div>
      
       <div class="title">      
            <div class="seprate"> <img src="../images/bullet0.jpg" alt="Cate"/>
                Product Description</div>
         <div>   
         </br>
        <div  class="title">
                <textarea name="mtxDescription" id="mtxDescription" ></textarea>
                  <textarea name="mtxDescription_vi" id="mtxDescription_vi" ></textarea>
                </div> 
                  <script>
                             CKEDITOR.replace( 'mtxDescription' );
                             CKEDITOR.replace( 'mtxDescription_vi' );
                         </script>
												
        </div>
        </div>
        <div class="title">      
            <div class="seprate"> <img src="../images/bullet0.jpg" alt="Cate"/>
                Product Price&nbsp&nbsp</div>
            <div class="rightseprate" style="text-align: right">
            <input name="txtPrice" type="text" id="txtPrice" size="10" maxlength="7"  onKeyUp="checkNumber(this);" style="width: 356px; height: 29px;" /></div>      
        </div>
        <div class="title">      
            <div class="seprate"> <img src="../images/bullet0.jpg" alt="Cate"/>
                Product Quality</div>
            <div class="rightseprate" style="text-align: right">
            <input name="txtQty" type="text" id="txtQty" size="10" maxlength="10"  onKeyUp="checkNumber(this);" style="width: 356px; height: 29px;" /></div>      
        </div>
        <div class="title">      
            <div class="seprate"> <img src="../images/bullet0.jpg" alt="Cate"/>
                Product Image  &nbsp</div>
            <div class="rightseprate" style="text-align: right">
                <input id="fleImage" type="file" name="fleImage"/></div>      
        </div>
        <div class="title">      
            <div class="seprate"> <img src="../images/bullet0.jpg" alt="Cate"/>
               Promotion &nbsp &nbsp &nbsp &nbsp &nbsp</div>
            <div class="rightseprate" style="text-align: right">
               <select style="font-size: 12pt; font-family:Times New Roman;Color:Blue; text-align:center; width: 150px;"
				           name="cb_promotion">
		            <option value="No">------------Sale off-------------</option>			
				    <option value="50%">Sale off 50%</option>			
				    <option value="30%">Sal off 30%</option>			
				    <option value="Present">Present</option>					
				    <option value="Ticket">Ticket Cinema</option>			
		        </select>
			 </div>      
        </div>        
        <div class="title">      
        </div>
 <p align="center"> 
  <input name="btnAddProduct" type="button" id="btnAddProduct" value="Add Product" onClick="checkAddProductForm();" class="box" >
  &nbsp;&nbsp;<input name="btnCancel" type="button" id="btnCancel" value="Cancel" onClick="window.location.href='index.php';"class="box" >  
 </p>  
               
       
  
</form>
</body>
</html>
